package com.note.servlet;

import com.alibaba.fastjson.JSON;
import com.note.entity.User;

import javax.servlet.http.HttpServlet;

/**
 * Created by XQ on 2017/6/4.
 */
public class ResponseMessage{

    public Response ResponseMessage(String myData, int code, String message) {
        Meta meta1 = new Meta(code,message);
        Response response = new Response();
        response.setMeta(meta1);
        response.setData(myData);
        return response;
    }
}
